WORST_CASE(?,O(n^2)) Solution: --------- "!EQ" :: ["A"(0, 0) x "A"(0, 0)] -(0)-> "A"(7, 14) "0" :: [] -(0)-> "A"(0, 0) "Cons" :: ["A"(0, 0) x "A"(0, 0)] -(0)-> "A"(0, 0) "Cons" :: ["A"(0, 0) x "A"(7, 0)] -(7)-> "A"(7, 0) "Cons" :: ["A"(0, 8) x "A"(15, 8)] -(7)-> "A"(7, 8) "False" :: [] -(0)-> "A"(7, 8) "False" :: [] -(0)-> "A"(1, 2) "False" :: [] -(0)-> "A"(7, 15) "False" :: [] -(0)-> "A"(13, 15) "Nil" :: [] -(0)-> "A"(7, 0) "Nil" :: [] -(0)-> "A"(0, 0) "S" :: ["A"(0, 0)] -(0)-> "A"(0, 0) "True" :: [] -(0)-> "A"(7, 8) "True" :: [] -(0)-> "A"(0, 8) "True" :: [] -(0)-> "A"(15, 15) "loop" :: ["A"(0, 0) x "A"(7, 0) x "A"(4, 0) x "A"(7, 8)] -(13)-> "A"(0, 2) "loop[Ite]" :: ["A"(7, 8) x "A"(0, 0) x "A"(7, 0) x "A"(4, 0) x "A"(7, 8)] -(8)-> "A"(0, 8) "match1" :: ["A"(15, 6) x "A"(15, 15)] -(16)-> "A"(0, 2) Cost Free Signatures: --------------------- "!EQ" :: ["A"_cf(0, 0) x "A"_cf(0, 0)] -(0)-> "A"_cf(0, 0) "0" :: [] -(0)-> "A"_cf(0, 0) "Cons" :: ["A"_cf(0, 0) x "A"_cf(0, 0)] -(0)-> "A"_cf(0, 0) "Cons" :: ["A"_cf(0, 0) x "A"_cf(1, 0)] -(1)-> "A"_cf(1, 0) "False" :: [] -(0)-> "A"_cf(0, 0) "False" :: [] -(0)-> "A"_cf(8, 0) "False" :: [] -(0)-> "A"_cf(2, 0) "False" :: [] -(0)-> "A"_cf(2, 6) "False" :: [] -(0)-> "A"_cf(0, 7) "Nil" :: [] -(0)-> "A"_cf(0, 0) "S" :: ["A"_cf(0, 0)] -(0)-> "A"_cf(0, 0) "True" :: [] -(0)-> "A"_cf(0, 0) "True" :: [] -(0)-> "A"_cf(8, 0) "True" :: [] -(0)-> "A"_cf(2, 0) "True" :: [] -(0)-> "A"_cf(8, 8) "True" :: [] -(0)-> "A"_cf(0, 6) "loop" :: ["A"_cf(0, 0) x "A"_cf(0, 0) x "A"_cf(0, 0) x "A"_cf(0, 0)] -(0)-> "A"_cf(2, 0) "loop" :: ["A"_cf(0, 0) x "A"_cf(0, 0) x "A"_cf(0, 0) x "A"_cf(1, 0)] -(2)-> "A"_cf(0, 6) "loop" :: ["A"_cf(0, 0) x "A"_cf(0, 0) x "A"_cf(0, 0) x "A"_cf(0, 0)] -(0)-> "A"_cf(0, 6) "loop[Ite]" :: ["A"_cf(0, 0) x "A"_cf(0, 0) x "A"_cf(0, 0) x "A"_cf(0, 0) x "A"_cf(0, 0)] -(0)-> "A"_cf(2, 0) "loop[Ite]" :: ["A"_cf(0, 0) x "A"_cf(0, 0) x "A"_cf(0, 0) x "A"_cf(0, 0) x "A"_cf(1, 0)] -(2)-> "A"_cf(0, 6) "loop[Ite]" :: ["A"_cf(0, 0) x "A"_cf(0, 0) x "A"_cf(0, 0) x "A"_cf(0, 0) x "A"_cf(0, 0)] -(0)-> "A"_cf(0, 6) Base Constructors: ------------------ "\"0\"_A" :: [] -(0)-> "A"(1, 0) "\"0\"_A" :: [] -(0)-> "A"(0, 1) "\"Cons\"_A" :: ["A"(0, 0) x "A"(1, 0)] -(1)-> "A"(1, 0) "\"Cons\"_A" :: ["A"(0, 1) x "A"(1, 1)] -(0)-> "A"(0, 1) "\"False\"_A" :: [] -(0)-> "A"(1, 0) "\"False\"_A" :: [] -(0)-> "A"(0, 1) "\"Nil\"_A" :: [] -(0)-> "A"(1, 0) "\"Nil\"_A" :: [] -(0)-> "A"(0, 1) "\"S\"_A" :: ["A"(1, 0)] -(1)-> "A"(1, 0) "\"S\"_A" :: ["A"(0, 0)] -(0)-> "A"(0, 1) "\"True\"_A" :: [] -(0)-> "A"(1, 0) "\"True\"_A" :: [] -(0)-> "A"(0, 1)